<?php
if (!init()) {
  redirect('?action=login');
}

$resultSet = deleteDialogMessage($_GET['mid']);

$initiatorAction = \controller\ControllerUtil::getEncodedActionFromUrlWithParameters($_SERVER['HTTP_REFERER']) . "#lmsg";

if ($resultSet) {
  redirect("?action=msg&header=header.msg.delete.success&body=body.msg.delete.success&view=" . $initiatorAction);
} else {
  redirect("?action=msg&header=header.msg.delete.failed&body=body.msg.delete.failed&view=" . $initiatorAction);
}
